import React from 'react';
import ReactDOM from 'react-dom/client';
import App from './App';
import { Provider } from 'react-redux'
import store from './store'
// import { StoreContext } from './hoc(react-redux原理)/StoreContext';

const root = ReactDOM.createRoot(document.getElementById('root'));
root.render(
  // <React.StrictMode>
    <Provider store={store}>
      {/* 个人封装的 Provider */}
      {/*<StoreContext.Provider value={store}>*/}
        <App />
      {/*</StoreContext.Provider>*/}
    </Provider>
  // </React.StrictMode>
);
